package com.shd.edanpei.presenter.contract;

import android.os.Bundle;

import com.shd.edanpei.base.BaseIPresenter;
import com.shd.edanpei.base.BaseIView;
import com.shd.edanpei.bean.OrderDetailsModel;

/**
 * Created by mc on 2018/9/25.
 * yang-wen-wen
 */

public interface OrderDetailsContract {

    interface OrderDetailsIView extends BaseIView {

        void setData(OrderDetailsModel model);

    }

    interface OrderDetailsIPresenter extends BaseIPresenter {

        /**
         * 订单详情
         */
        void requetData(int orderID);

        /**
         * 抢单
         */
        void take(int orderID, int index);


        void sureGetLone(Bundle bundle);

        void remove(int orderID, int orderType, int index, int type);

        //修改订单
        void updataOrder(Bundle bundle, int orderID, int status);

        /**
         * 发单者撤销订单
         */
        void userUndo(int orderID, int orderType, int index, boolean payDeposit);

        /**
         * 接单者撤销订单
         */
        void bankUndo(int orderID, int orderType, int index, boolean payDeposit);

        void bankRemove(int orderID, int orderType, int index);

    }
}
